home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / NONPORT.ZIP / WADDRAWS.C < prev    next >
Text File  |  1992-11-21  |  1KB  |  48 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef waddeawstr
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_waddraws = "$Header: c:/curses/nonport/RCS/waddraws.c%v 2.0 1992/11/15 03:18:29 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   waddrawstr() - add raw string to window
  15.  
  16.   PDCurses Description:
  17.        The *raw*() routines output 8 bit values.  These contrast to their
  18.        normal counterparts which output 7 bit values and convert control
  19.        character to the ^X notation.
  20.  
  21.        str is a standard 8 bit character string WITHOUT embedded attributes.
  22.  
  23.   PDCurses Return Value:
  24.        The waddrawstr() function returns OK on success and ERR on error.
  25.  
  26.   PDCurses Errors:
  27.        It is an error to call this function with a NULL window pointer.
  28.  
  29.   Portability:
  30.        PDCurses        int waddrawstr( WINDOW* win, char* str );
  31.  
  32. **man-end**********************************************************************/
  33.  
  34. int    waddrawstr(WINDOW *win, char *str)
  35. {
  36.        if (win == (WINDOW *)NULL)
  37.                return( ERR );
  38.  
  39.        while (*str)
  40.        {
  41.                if (waddrawch(win, *str++) == ERR)
  42.                {
  43.                        return( ERR );
  44.                }
  45.        }
  46.        return( OK );
  47. }
  48.